<html>
<head>
	<title>Excersise 3</title>
	<link href="styles/js-console.css" rel="stylesheet" />
</head>
<body>
	<div id="js-console"></div>
	<script src="scripts/js-console.js"></script>
	<script>
		var numbers = new Array(4, 5, 6, 35, 8, 175, 3);	
		var maxnumber = 0;
		var minnumber = 9999;
		jsConsole.write("array of numbers: ");
		for (i = 1;i < 7;i++)
		{
			jsConsole.write(numbers[i]+", ");
			if (numbers[i]>maxnumber)
			{
				maxnumber = numbers[i];
			}
			if (numbers[i]<minnumber)
			{
				minnumber = numbers[i];
			}
		}
			jsConsole.writeLine();
			jsConsole.writeLine("minimal number from array: " + minnumber);
			jsConsole.writeLine("maximal number from array: " + maxnumber);
	</script>
</body>
</html>
